package org.hzero.system.domain;

import org.hzero.system.annotation.KnifeField;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 执行拷贝字段的目标类
 * @author: tianhao.luo@hand-china.com 2021/3/3  10:08
 */
public class TargetDTO {

    /**
     * 字符串类型
     */
    @KnifeField(name = "strField")
    String strField;
    /**
     * 时间类型
     */
    @KnifeField(name = "dateField")
    Date dateField;
    /**
     * 整型
     */
    @KnifeField(name = "intField")
    Integer intField;
    /**
     * 长整型
     */
    @KnifeField(name = "longField")
    Long longField;
    /**
     * 金额数字类型
     */
    @KnifeField(name = "decimalField")
    BigDecimal decimalField;



    /**
     * 字符串类型
     */
    @KnifeField(name = "parentStrField")
    public String parentStrField;
    /**
     * 时间类型
     */
    @KnifeField(name = "parentDateField")
    public Date parentDateField;
    /**
     * 整型
     */
    @KnifeField(name = "parentIntField")
    public Integer parentIntField;
    /**
     * 长整型
     */
    @KnifeField(name = "parentLongField")
    public Long parentLongField;
    /**
     * 金额数字类型
     */
    @KnifeField(name = "parentDecimalField")
    public BigDecimal parentDecimalField;


    public String getParentStrField() {
        return parentStrField;
    }

    public void setParentStrField(String parentStrField) {
        this.parentStrField = parentStrField;
    }

    public Date getParentDateField() {
        return parentDateField;
    }

    public void setParentDateField(Date parentDateField) {
        this.parentDateField = parentDateField;
    }

    public Integer getParentIntField() {
        return parentIntField;
    }

    public void setParentIntField(Integer parentIntField) {
        this.parentIntField = parentIntField;
    }

    public Long getParentLongField() {
        return parentLongField;
    }

    public void setParentLongField(Long parentLongField) {
        this.parentLongField = parentLongField;
    }

    public BigDecimal getParentDecimalField() {
        return parentDecimalField;
    }

    public void setParentDecimalField(BigDecimal parentDecimalField) {
        this.parentDecimalField = parentDecimalField;
    }

    public String getStrField() {
        return strField;
    }

    public void setStrField(String strField) {
        this.strField = strField;
    }

    public Date getDateField() {
        return dateField;
    }

    public void setDateField(Date dateField) {
        this.dateField = dateField;
    }

    public Integer getIntField() {
        return intField;
    }

    public void setIntField(Integer intField) {
        this.intField = intField;
    }

    public Long getLongField() {
        return longField;
    }

    public void setLongField(Long longField) {
        this.longField = longField;
    }

    public BigDecimal getDecimalField() {
        return decimalField;
    }

    public void setDecimalField(BigDecimal decimalField) {
        this.decimalField = decimalField;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("TargetDTO{");
        sb.append("strField='").append(strField).append('\'');
        sb.append(", dateField=").append(dateField);
        sb.append(", intField=").append(intField);
        sb.append(", longField=").append(longField);
        sb.append(", decimalField=").append(decimalField);
        sb.append(", parentStrField='").append(parentStrField).append('\'');
        sb.append(", parentDateField=").append(parentDateField);
        sb.append(", parentIntField=").append(parentIntField);
        sb.append(", parentLongField=").append(parentLongField);
        sb.append(", parentDecimalField=").append(parentDecimalField);
        sb.append('}');
        return sb.toString();
    }
}
